//
//  ICMMaintenanceProjectCell.m
//  ICrEAM
//
//  Created by xphone on 16/11/24.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ICMMaintenanceProjectCell.h"

@implementation ICMMaintenanceProjectCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (UILabel *)nameLabel{
    if(!_nameLabel){
        
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, ActualHeight(10), ActualWidth(460), ActualHeight(34))];
        
        _nameLabel.textColor = ContentTextColor_Black;
        _nameLabel.textAlignment = NSTextAlignmentCenter;
        _nameLabel.font = [UIFont systemFontOfSize:ActualWidth(18)];
        
        [self addSubview:_nameLabel];
        
        
        
    }
    return _nameLabel;
    
}
- (UILabel *)codeLabel{
    if(!_codeLabel){
        
        _codeLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, self.nameLabel.bottomEdge, ActualWidth(460), ActualHeight(34))];
        
        _codeLabel.textColor = Color(0x666666);
        _codeLabel.textAlignment = NSTextAlignmentCenter;
        _codeLabel.font = [UIFont systemFontOfSize:ActualWidth(18)];
        
        [self addSubview:_codeLabel];
        
        
        
    }
    return _codeLabel;
}
- (UILabel *)timesLabel{
    if(!_timesLabel){
        _timesLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.nameLabel.rightEdge, 0, ActualWidth(180), ActualHeight(88))];
        _timesLabel.textColor = ContentTextColor_Black;
        _timesLabel.textAlignment = NSTextAlignmentCenter;
        _timesLabel.font = [UIFont systemFontOfSize:ActualWidth(18)];
        [self addSubview:_timesLabel];
        
        //分割线
        UIView *view = [[UIView alloc]initWithFrame:CGRectMake(self.nameLabel.rightEdge, 0, 1, ActualHeight(88))];
        view.backgroundColor = [UIColor whiteColor];
        [self addSubview:view];
    }
    
    return _timesLabel;
    
}

- (UILabel *)pianchaLabel{
    if(!_pianchaLabel){
        
        _pianchaLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.timesLabel.rightEdge,0, ScreenWidth - ActualWidth(640), ActualHeight(88))];
        
        _pianchaLabel.textColor = ContentTextColor_Black;
        _pianchaLabel.textAlignment = NSTextAlignmentCenter;
        _pianchaLabel.font = [UIFont systemFontOfSize:ActualWidth(18)];
        
        [self addSubview:_pianchaLabel];
        
        //分割线
        UIView *view = [[UIView alloc]initWithFrame:CGRectMake(self.timesLabel.rightEdge, 0, 1, ActualHeight(88))];
        view.backgroundColor = [UIColor whiteColor];
        [self addSubview:view];
        
        
    }
    
    return _pianchaLabel;
    
}


@end
